/**
 * Created by 白雨浓 on 2018/1/29 19:03.
 */

export const template = `package <%= packageName %>.exception;

import <%= packageName %>.enums.<%= clsName %>Enum;

/**
 * <%= packageName %>.exception
 *
 * @author <%= author %>
 * date: <%= date %>
 * content: 异常
 */
public class <%= clsName %>Exception extends BaseException {

    public <%= clsName %>Exception(int code, String message) {
        super(code, message);
    }

    public <%= clsName %>Exception(<%= clsName %>Enum en) {
        super(en.getCode(), en.getMsg());
    }

    public <%= clsName %>Exception(<%= clsName %>Enum en, String message) {
        super(en.getCode(), message);
    }
}`;